﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 课程课时
    /// </summary>
    [Table("sys_EduLesson"), Comment("课程课时")]
    public class EduLesson : EfEntity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 课时名称
        /// </summary>
        [Comment("课时名称")]
        public string Title { get; set; }

        /// <summary>
        /// 课程
        /// </summary>
        [Comment("课程")]
        public long Course { get; set; }

        /// <summary>
        /// 课程阶段
        /// </summary>
        [Comment("课程阶段")]
        public long Phase { get; set; }

        /// <summary>
        /// 内容地址 课程内容地址链接
        /// </summary>
        [Comment("内容地址 课程内容地址链接"), MaxLength(2000)]
        public string Address { get; set; }

        /// <summary>
        /// 类型 1：音频，2：视频
        /// </summary>
        [Comment("类型 1：音频，2：视频")]
        public int Type { get; set; }

        /// <summary>
        /// 课程顺序 课程排序
        /// </summary>
        [Comment("课程顺序")]
        public int Sort { get; set; }

        /// <summary>
        /// 课时图片
        /// </summary>
        [Comment("课时图片"),MaxLength(2000)]
        public string LessonImg { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Comment("状态")]
        public bool Deleted { get; set; } = false;
    }
}
